# the minimum version of CMake.
cmake_minimum_required(VERSION 3.4.1)
project(tun2http)

include_directories(${CMAKE_CURRENT_SOURCE_DIR})
# set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_SOURCE_DIR}/src/main/assets/${ABI}")

add_library( # Sets the name of the library.
        tun2http

        # Sets the library as a shared library.
        SHARED

         tun2http.cpp

         dhcp.cpp
         dns.cpp
         icmp.cpp
         ip.cpp
         http.cpp

         session.cpp
         tcp.cpp
         tls.cpp
         udp.cpp
         util.cpp

        )
target_link_libraries(tun2http libhilog_ndk.z.so)
#find_library( # Sets the name of the path variable.
#        log-lib

#        # Specifies the name of the NDK library that
#        # you want CMake to locate.
#        libhilog_ndk.z)

#target_link_libraries( # Specifies the target library.
#        tun2http
#        ${log-lib}
#        )